package com.example.demo.lamdatest;

/**
 * @author: twd
 * @since: 2023/6/19 15:28
 */
public class MyLamdaTest {


    public static void main(String[] args) {
        Test2<MyLamdaTest> handle1 = MyLamdaTest::handle1;
        Test1<MyLamdaTest,Integer> handle2 = MyLamdaTest::handle2;
    }


    public void  handle1(){
        System.out.println(1);
    }
    public void  handle2(Integer a){
        System.out.println(2);
    }
    public static void  handle3(int a,int b){
        System.out.println(3);
    }
    @FunctionalInterface
    static  interface Test1<T,U>{
        void apply(T t,U u);
    }

    @FunctionalInterface
    static  interface Test2<T>{
        void apply(T t);
    }
}
